package com.song.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BirthdayExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BirthdayExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andBirthdayYinIsNull() {
            addCriterion("birthday_yin is null");
            return (Criteria) this;
        }

        public Criteria andBirthdayYinIsNotNull() {
            addCriterion("birthday_yin is not null");
            return (Criteria) this;
        }

        public Criteria andBirthdayYinEqualTo(String  value) {
            addCriterion("birthday_yin =", value, "birthdayYin");
            return (Criteria) this;
        }

        public Criteria andBirthdayYinNotEqualTo(Date value) {
            addCriterion("birthday_yin <>", value, "birthdayYin");
            return (Criteria) this;
        }

        public Criteria andBirthdayYinGreaterThan(Date value) {
            addCriterion("birthday_yin >", value, "birthdayYin");
            return (Criteria) this;
        }

        public Criteria andBirthdayYinGreaterThanOrEqualTo(Date value) {
            addCriterion("birthday_yin >=", value, "birthdayYin");
            return (Criteria) this;
        }

        public Criteria andBirthdayYinLessThan(Date value) {
            addCriterion("birthday_yin <", value, "birthdayYin");
            return (Criteria) this;
        }

        public Criteria andBirthdayYinLessThanOrEqualTo(Date value) {
            addCriterion("birthday_yin <=", value, "birthdayYin");
            return (Criteria) this;
        }

        public Criteria andBirthdayYinIn(List<Date> values) {
            addCriterion("birthday_yin in", values, "birthdayYin");
            return (Criteria) this;
        }

        public Criteria andBirthdayYinNotIn(List<Date> values) {
            addCriterion("birthday_yin not in", values, "birthdayYin");
            return (Criteria) this;
        }

        public Criteria andBirthdayYinBetween(Date value1, Date value2) {
            addCriterion("birthday_yin between", value1, value2, "birthdayYin");
            return (Criteria) this;
        }

        public Criteria andBirthdayYinNotBetween(Date value1, Date value2) {
            addCriterion("birthday_yin not between", value1, value2, "birthdayYin");
            return (Criteria) this;
        }

        public Criteria andBirthdayYangIsNull() {
            addCriterion("birthday_yang is null");
            return (Criteria) this;
        }

        public Criteria andBirthdayYangIsNotNull() {
            addCriterion("birthday_yang is not null");
            return (Criteria) this;
        }

        public Criteria andBirthdayYangEqualTo(Date value) {
            addCriterion("birthday_yang =", value, "birthdayYang");
            return (Criteria) this;
        }

        public Criteria andBirthdayYangNotEqualTo(Date value) {
            addCriterion("birthday_yang <>", value, "birthdayYang");
            return (Criteria) this;
        }

        public Criteria andBirthdayYangGreaterThan(Date value) {
            addCriterion("birthday_yang >", value, "birthdayYang");
            return (Criteria) this;
        }

        public Criteria andBirthdayYangGreaterThanOrEqualTo(Date value) {
            addCriterion("birthday_yang >=", value, "birthdayYang");
            return (Criteria) this;
        }

        public Criteria andBirthdayYangLessThan(Date value) {
            addCriterion("birthday_yang <", value, "birthdayYang");
            return (Criteria) this;
        }

        public Criteria andBirthdayYangLessThanOrEqualTo(Date value) {
            addCriterion("birthday_yang <=", value, "birthdayYang");
            return (Criteria) this;
        }

        public Criteria andBirthdayYangIn(List<Date> values) {
            addCriterion("birthday_yang in", values, "birthdayYang");
            return (Criteria) this;
        }

        public Criteria andBirthdayYangNotIn(List<Date> values) {
            addCriterion("birthday_yang not in", values, "birthdayYang");
            return (Criteria) this;
        }

        public Criteria andBirthdayYangBetween(Date value1, Date value2) {
            addCriterion("birthday_yang between", value1, value2, "birthdayYang");
            return (Criteria) this;
        }

        public Criteria andBirthdayYangNotBetween(Date value1, Date value2) {
            addCriterion("birthday_yang not between", value1, value2, "birthdayYang");
            return (Criteria) this;
        }

        public Criteria andAdvanceDayIsNull() {
            addCriterion("advance_day is null");
            return (Criteria) this;
        }

        public Criteria andAdvanceDayIsNotNull() {
            addCriterion("advance_day is not null");
            return (Criteria) this;
        }

        public Criteria andAdvanceDayEqualTo(Integer value) {
            addCriterion("advance_day =", value, "advanceDay");
            return (Criteria) this;
        }

        public Criteria andAdvanceDayNotEqualTo(Integer value) {
            addCriterion("advance_day <>", value, "advanceDay");
            return (Criteria) this;
        }

        public Criteria andAdvanceDayGreaterThan(Integer value) {
            addCriterion("advance_day >", value, "advanceDay");
            return (Criteria) this;
        }

        public Criteria andAdvanceDayGreaterThanOrEqualTo(Integer value) {
            addCriterion("advance_day >=", value, "advanceDay");
            return (Criteria) this;
        }

        public Criteria andAdvanceDayLessThan(Integer value) {
            addCriterion("advance_day <", value, "advanceDay");
            return (Criteria) this;
        }

        public Criteria andAdvanceDayLessThanOrEqualTo(Integer value) {
            addCriterion("advance_day <=", value, "advanceDay");
            return (Criteria) this;
        }

        public Criteria andAdvanceDayIn(List<Integer> values) {
            addCriterion("advance_day in", values, "advanceDay");
            return (Criteria) this;
        }

        public Criteria andAdvanceDayNotIn(List<Integer> values) {
            addCriterion("advance_day not in", values, "advanceDay");
            return (Criteria) this;
        }

        public Criteria andAdvanceDayBetween(Integer value1, Integer value2) {
            addCriterion("advance_day between", value1, value2, "advanceDay");
            return (Criteria) this;
        }

        public Criteria andAdvanceDayNotBetween(Integer value1, Integer value2) {
            addCriterion("advance_day not between", value1, value2, "advanceDay");
            return (Criteria) this;
        }

        public Criteria andAdvanceTimeIsNull() {
            addCriterion("advance_time is null");
            return (Criteria) this;
        }

        public Criteria andAdvanceTimeIsNotNull() {
            addCriterion("advance_time is not null");
            return (Criteria) this;
        }

        public Criteria andAdvanceTimeEqualTo(Date value) {
            addCriterion("advance_time =", value, "advanceTime");
            return (Criteria) this;
        }

        public Criteria andAdvanceTimeNotEqualTo(Date value) {
            addCriterion("advance_time <>", value, "advanceTime");
            return (Criteria) this;
        }

        public Criteria andAdvanceTimeGreaterThan(Date value) {
            addCriterion("advance_time >", value, "advanceTime");
            return (Criteria) this;
        }

        public Criteria andAdvanceTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("advance_time >=", value, "advanceTime");
            return (Criteria) this;
        }

        public Criteria andAdvanceTimeLessThan(Date value) {
            addCriterion("advance_time <", value, "advanceTime");
            return (Criteria) this;
        }

        public Criteria andAdvanceTimeLessThanOrEqualTo(Date value) {
            addCriterion("advance_time <=", value, "advanceTime");
            return (Criteria) this;
        }

        public Criteria andAdvanceTimeIn(List<Date> values) {
            addCriterion("advance_time in", values, "advanceTime");
            return (Criteria) this;
        }

        public Criteria andAdvanceTimeNotIn(List<Date> values) {
            addCriterion("advance_time not in", values, "advanceTime");
            return (Criteria) this;
        }

        public Criteria andAdvanceTimeBetween(Date value1, Date value2) {
            addCriterion("advance_time between", value1, value2, "advanceTime");
            return (Criteria) this;
        }

        public Criteria andAdvanceTimeNotBetween(Date value1, Date value2) {
            addCriterion("advance_time not between", value1, value2, "advanceTime");
            return (Criteria) this;
        }

        public Criteria andAdvanceStatusIsNull() {
            addCriterion("advance_status is null");
            return (Criteria) this;
        }

        public Criteria andAdvanceStatusIsNotNull() {
            addCriterion("advance_status is not null");
            return (Criteria) this;
        }

        public Criteria andAdvanceStatusEqualTo(Boolean value) {
            addCriterion("advance_status =", value, "advanceStatus");
            return (Criteria) this;
        }

        public Criteria andAdvanceStatusNotEqualTo(Boolean value) {
            addCriterion("advance_status <>", value, "advanceStatus");
            return (Criteria) this;
        }

        public Criteria andAdvanceStatusGreaterThan(Boolean value) {
            addCriterion("advance_status >", value, "advanceStatus");
            return (Criteria) this;
        }

        public Criteria andAdvanceStatusGreaterThanOrEqualTo(Boolean value) {
            addCriterion("advance_status >=", value, "advanceStatus");
            return (Criteria) this;
        }

        public Criteria andAdvanceStatusLessThan(Boolean value) {
            addCriterion("advance_status <", value, "advanceStatus");
            return (Criteria) this;
        }

        public Criteria andAdvanceStatusLessThanOrEqualTo(Boolean value) {
            addCriterion("advance_status <=", value, "advanceStatus");
            return (Criteria) this;
        }

        public Criteria andAdvanceStatusIn(List<Boolean> values) {
            addCriterion("advance_status in", values, "advanceStatus");
            return (Criteria) this;
        }

        public Criteria andAdvanceStatusNotIn(List<Boolean> values) {
            addCriterion("advance_status not in", values, "advanceStatus");
            return (Criteria) this;
        }

        public Criteria andAdvanceStatusBetween(Boolean value1, Boolean value2) {
            addCriterion("advance_status between", value1, value2, "advanceStatus");
            return (Criteria) this;
        }

        public Criteria andAdvanceStatusNotBetween(Boolean value1, Boolean value2) {
            addCriterion("advance_status not between", value1, value2, "advanceStatus");
            return (Criteria) this;
        }

        public Criteria andUIdIsNull() {
            addCriterion("u_id is null");
            return (Criteria) this;
        }

        public Criteria andUIdIsNotNull() {
            addCriterion("u_id is not null");
            return (Criteria) this;
        }

        public Criteria andUIdEqualTo(String value) {
            addCriterion("u_id =", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdNotEqualTo(String value) {
            addCriterion("u_id <>", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdGreaterThan(String value) {
            addCriterion("u_id >", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdGreaterThanOrEqualTo(String value) {
            addCriterion("u_id >=", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdLessThan(String value) {
            addCriterion("u_id <", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdLessThanOrEqualTo(String value) {
            addCriterion("u_id <=", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdLike(String value) {
            addCriterion("u_id like", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdNotLike(String value) {
            addCriterion("u_id not like", value, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdIn(List<String> values) {
            addCriterion("u_id in", values, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdNotIn(List<String> values) {
            addCriterion("u_id not in", values, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdBetween(String value1, String value2) {
            addCriterion("u_id between", value1, value2, "uId");
            return (Criteria) this;
        }

        public Criteria andUIdNotBetween(String value1, String value2) {
            addCriterion("u_id not between", value1, value2, "uId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}